﻿<UserControl x:Class="Sovacode.DemoApp.View.CommandView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        
        <StackPanel Orientation="Vertical" Grid.Row="0" Grid.Column="0">

            <Button Command="{Binding [WibblyWobblyTimeyWimey_Stuff]}" Height="23" Width="250" Margin="10,10,10,0">Show Simple Message</Button>
            <Button Command="{Binding [ShowMessageFromTextBox]}" Height="23" Width="250" Margin="10,10,10,0">Show Message from text box</Button>
            <Button Command="{Binding [BadCommand]}" Height="23" Width="250" Margin="10,10,10,0">Invalid command name</Button>

        </StackPanel>

        <StackPanel Grid.Column="1" Grid.Row="0" Orientation="Vertical">
            <TextBlock Text="Message:" Margin="10,10,10,0"/>
            <TextBox Height="23" Margin="10,10,10,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Text="{Binding Message, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
        </StackPanel>
        
        
        
        <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Vertical">
            <TextBlock Text="{Binding TotalViewModelCommands}" Margin="10,10,10,0"/>
            <TextBlock Margin="10,10,10,0"><Hyperlink Command="{Binding [ShowAllCommands]}">Show List Commands</Hyperlink></TextBlock>
            <TextBlock Text="{Binding ValidViewModelCommands}" Margin="10,10,10,0"/>
            <TextBlock Margin="10,10,10,0"><Hyperlink Command="{Binding [ShowValidCommands]}">Show List Of Valid Commands</Hyperlink></TextBlock>
            <TextBlock Text="{Binding InvalidViewModelCommands}" Margin="10,10,10,0"/>
            <TextBlock Margin="10,10,10,0"><Hyperlink Command="{Binding [ShowInvalidCommands]}">Show List Of Invalid Commands</Hyperlink></TextBlock>
        </StackPanel>

    </Grid>
</UserControl>
